package view;

import java.awt.GridBagConstraints;

import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 * This class is a premade {@link javax.swing.JTextArea} created specifically for this program.
 * It includes all the necessary items needed.
 * @author Ben
 */
@SuppressWarnings("serial")
public class MessageArea extends JTextArea
{
	JScrollPane scrollPane;
	GridBagConstraints d;
	
	public MessageArea()
	{
		super(5, 20);
		setEditable(false);
		scrollPane = new JScrollPane(this);
		
        d = new GridBagConstraints();
		d.gridwidth = GridBagConstraints.REMAINDER;
		d.fill = GridBagConstraints.BOTH;
		d.weightx = .1;
		d.weighty = .1;
	}
	
	protected GridBagConstraints getConstraint()
	{
		return d;
	}
	
	protected JScrollPane getScrollPane()
	{
		return scrollPane;
	}

}
